package com.moon.cofig;

import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.FilterType;
//import org.springframework.web.servlet.mvc.Controller;
import org.springframework.stereotype.Controller;
//Spring不扫描SpringMVC
@Configuration
@ComponentScan(value = "com.moon", excludeFilters = @ComponentScan.Filter(
//        按注解过滤
        type = FilterType.ANNOTATION,
        classes = Controller.class
))
public class SpringConfig {

}
